package com.taxshare.manager.controller;

import com.taxshare.manager.service.CommAuthService;
import com.taxshare.response.beans.Response;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @ClassName: commController
 * @Description:
 * @author: luozhongyi
 * @date: 2021/4/13 10:50
 */
@RestController
@RequestMapping(value = "/commAuth")
@Api(tags = "公共权限")
public class CommAuthController {

    @Autowired
    CommAuthService commAuthService;
    /**
     * 获取税号集合
     */
    @GetMapping("/get/taxNumbers")
    @ApiOperation(value = "获取税号集合", notes = "获取税号集合")
    public Response<List<String>> getTaxNumbers(@RequestParam("userid")String userid,@RequestParam("userType") String userType) throws Exception {
        return commAuthService.getTaxNumbers(userid,userType);
    }
}
